# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-parallel-n64
pkgver=0_git20220406
pkgrel=0
_commit="b804ab1a199d6ff1f8fef4aa7dfcf663990e430b"
pkgdesc="optimized/rewritten Nintendo 64 emulator made specifically for Libretro"
url="https://github.com/libretro/parallel-n64"
arch="all !ppc64le !s390x !riscv64"
license="GPL-2.0-only"
makedepends="mesa-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/parallel-n64/archive/$_commit.tar.gz
	patch-aarch64.patch
	patch-arm.patch
	"
builddir="$srcdir/parallel-n64-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 parallel_n64_libretro.so "$pkgdir"/usr/lib/libretro/parallel_n64_libretro.so
}

sha512sums="
8e3ceabe97c5bf31c5db463c05b40c76e7a2c2e7e7d1e16c3673c0b87cb882ea506187dca4266224721e334f3e95c38eb918591b7cad972123389a1fe1628808  libretro-parallel-n64-b804ab1a199d6ff1f8fef4aa7dfcf663990e430b.tar.gz
b2e41dc864eefca4cfd62c42371b371dabb28a04c604f3d31185751c87f632371f6d0557ddb7bca32299ce7c0d5908204e3f2afa8fef943b0dbd2a8bd68302af  patch-aarch64.patch
d5f8abf349b1bff945a0e3f90aabbdbd159b7ddef8054fc284ab192adfa61ce8ccbeac25e14149a5c438db375c8246931ab59a1905adc3e30f217026780a4d7b  patch-arm.patch
"
